#!/bin/bash

GOOS=android GOARCH=arm64 go build -o arm_agent main.go
adb connect 172.16.1.219:5555
adb -s 172.16.1.219:5555 push arm_agent /data/local/tmp/arm_agent
adb -s 172.16.1.219:5555 shell '>/data/local/tmp/arm_agent.log ;
pkill arm_agent; chmod +x /data/local/tmp/arm_agent ;
nohup /data/local/tmp/arm_agent &>/data/local/tmp/arm_agent.log &'
